package com.clss.commandhelper.tools.janus.entity;

import android.util.Log;

import org.webrtc.MediaConstraints;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;


public class UserInfo implements Serializable{
	private static final String TAG = "UserInfo";

	private String userId;//用户id
	private Integer domainId;//来源网址
	private String token;//手机登录标识
	private Integer loginType;//登录方式
	private String userName;//用户名，用于登录
	private String nickName;//昵称
	private String password; //密码
	private String newPassword;	//新密码
	private String icon;//头像
	private String iconName;//[自己加的]
	private String iconPath;//[自己加的]
	private Integer role;//角色
	private String title;
	private String group;//主要机构，主要属于的机构组
	private List<MediaConstraints.KeyValuePair> mappedRoles;//次要组，如临时组成的专案组
	private String phone;//电话
	private String latitude;	//维度
	private String longtitude;	//经度
	private String address;//地址
	private String id;//身份证号
	private String birthday;//生日【后台是Date birthday】
	private Integer age;//年龄
	private Integer gender;//性别：0男，1女
	private String email;//邮箱
	private String name;//真实姓名
	private String policeId;//警员编号
	private List<Integer> permission;
	private String invitationCode;//邀请码
	private Integer points;//积分
	private Integer hcount;//累计积分
	private String userAgent;//用户标识
	private Integer state;//状态
	private String type;//0注册1忘记密码
	private String[] duty;//能出警的人员、已弃用
	private String lastLoginDate;//最后一次登录日期【后台是Date lastLoginDate】
	private String verificationCode;//验证码
	private Integer isVerify;	//是否验证过
	private String facePhoto;

	public String getFacePhoto() {
		return facePhoto;
	}

	public void setFacePhoto(String facePhoto) {
		this.facePhoto = facePhoto;
	}

	public Integer getIsVerify() {
		return isVerify;
	}

	public void setIsVerify(Integer isVerify) {
		this.isVerify = isVerify;
	}

	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getVerificationCode() {
		return verificationCode;
	}
	public void setVerificationCode(String verificationCode) {
		this.verificationCode = verificationCode;
	}
	public String getIconName() {
		return iconName;
	}
	public void setIconName(String iconName) {
		this.iconName = iconName;
	}
	public String getIconPath() {
		return iconPath;
	}
	public void setIconPath(String iconPath) {
		this.iconPath = iconPath;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Integer getDomainId() {
		return domainId;
	}
	public void setDomainId(Integer domainId) {
		this.domainId = domainId;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public Integer getLoginType() {
		return loginType;
	}
	public void setLoginType(Integer loginType) {
		this.loginType = loginType;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNewPassword() {
		return newPassword;
	}
	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public Integer getRole() {
		return role;
	}
	public void setRole(Integer role) {
		this.role = role;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getGroup() {
		return group;
	}
	public void setGroup(String group) {
		this.group = group;
	}
	public List<MediaConstraints.KeyValuePair> getMappedRoles() {
		return mappedRoles;
	}
	public void setMappedRoles(List<MediaConstraints.KeyValuePair> mappedRoles) {
		this.mappedRoles = mappedRoles;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public String getLongtitude() {
		return longtitude;
	}
	public void setLongtitude(String longtitude) {
		this.longtitude = longtitude;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPoliceId() {
		return policeId;
	}
	public void setPoliceId(String policeId) {
		this.policeId = policeId;
	}
	public List<Integer> getPermission() {
		return permission;
	}
	public void setPermission(List<Integer> permission) {
		this.permission = permission;
	}
	public String getInvitationCode() {
		return invitationCode;
	}
	public void setInvitationCode(String invitationCode) {
		this.invitationCode = invitationCode;
	}
	public Integer getPoints() {
		return points;
	}
	public void setPoints(Integer points) {
		this.points = points;
	}
	
	public Integer getHcount() {
		return hcount;
	}
	public void setHcount(Integer hcount) {
		this.hcount = hcount;
	}
	public String getUserAgent() {
		return userAgent;
	}
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public String[] getDuty() {
		return duty;
	}
	public void setDuty(String[] duty) {
		this.duty = duty;
	}
	public String getLastLoginDate() {
		return lastLoginDate;
	}
	public void setLastLoginDate(String lastLoginDate) {
		Log.i(TAG, "---setLastLoginDate===" + lastLoginDate);
		this.lastLoginDate = lastLoginDate;
	}

	@Override
	public String toString() {
		return "UserInfo{" +
				"userId='" + userId + '\'' +
				", domainId=" + domainId +
				", token='" + token + '\'' +
				", loginType=" + loginType +
				", userName='" + userName + '\'' +
				", nickName='" + nickName + '\'' +
				", password='" + password + '\'' +
				", newPassword='" + newPassword + '\'' +
				", icon='" + icon + '\'' +
				", iconName='" + iconName + '\'' +
				", iconPath='" + iconPath + '\'' +
				", role=" + role +
				", title='" + title + '\'' +
				", group='" + group + '\'' +
				", mappedRoles=" + mappedRoles +
				", phone='" + phone + '\'' +
				", latitude='" + latitude + '\'' +
				", longtitude='" + longtitude + '\'' +
				", address='" + address + '\'' +
				", id='" + id + '\'' +
				", birthday='" + birthday + '\'' +
				", age=" + age +
				", gender=" + gender +
				", email='" + email + '\'' +
				", name='" + name + '\'' +
				", policeId='" + policeId + '\'' +
				", permission=" + permission +
				", invitationCode='" + invitationCode + '\'' +
				", points=" + points +
				", hcount=" + hcount +
				", userAgent='" + userAgent + '\'' +
				", state=" + state +
				", type='" + type + '\'' +
				", duty=" + Arrays.toString(duty) +
				", lastLoginDate='" + lastLoginDate + '\'' +
				", verificationCode='" + verificationCode + '\'' +
				", isVerify=" + isVerify +
				'}';
	}
}

